package com.dhcc.bpm.modules.sandbox.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.bpm.modules.sandbox.entity.SandboxApi;
import com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO;

/**
 * @ClassName ISandboxApiService
 * @Description 沙箱实例表 服务类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface ISandboxApiService extends IService<SandboxApi> {

	/**
	 * @Description 自定义分页
	 * @Author sjm
	 * @Date 9:58 2020/2/22 0022
	 * @param page
	 * @param sandboxApi
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO>
	 **/
	IPage<SandboxApiVO> selectSandboxApiPage(IPage<SandboxApiVO> page, SandboxApiVO sandboxApi);

	/**
	 * 查询沙箱接口集合
	 * @Author sjm
	 * @Date 17:54 2020/2/21 0021
	 * @param caseId
	 * @param apiId
	 * @return com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO
	 **/
	SandboxApiVO selectSandboxApiList(Long caseId, Long apiId);

	int deleteByCaseId(Long caseId);
}
